#include<bits/stdc++.h>
using namespace std;

const int N=1e5+10;
int a[N];

int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        scanf("%d",&a[i]);
    }
    sort(a+1,a+1+n);
    int cnt=0;
    for(int i=2;i<=n;i++){
        int j=i-1;
        while(j>=1){
            if(a[i]>a[j]){
                cnt++;
                a[j]=1e8;
                break;
            }
            j--;
        }
    }
    printf("%d",n-cnt);
    fclose(stdin);
    fclose(stdout);
    return 0;
}
